package factoryMode.factory.factoryMethod.order;

import factoryMode.factory.factoryMethod.pizza.LDCheesePizza;
import factoryMode.factory.factoryMethod.pizza.LDPepperPizza;
import factoryMode.factory.factoryMethod.pizza.Pizza;

/**
 * @author： pang-yun
 * @date： 2021-10-21 20:27
 * 功能目的 ：用于
 */

public class LDOrderPizza extends PizzaOrder{
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza=null;
        if (orderType.equals("cheese")){
            pizza=new LDCheesePizza();
        }else if (orderType.equals("pepper")){
            pizza=new LDPepperPizza();
        }
        return pizza;
    }
}
